<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script>
       $.ajax({
            url:"com.servlet.Day1031servlet",
            dataType:"json",
            success:function (res) {
                $("#session_user").text(res.user_name)
            }
        });
    </script>
</head>
<body>
<h1>登录成功</h1>
当前登录用户名：<label id="session_user"></label><br>
当前IP地址:192.168.1.6<br>
<a href="login.html">退出</a>
</body>
</html>